package ntd.util.modular.function.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;

import ntd.util.config.common.controller.BaseMybatisController;
import ntd.util.modular.function.entity.AppInfo;
import ntd.util.modular.function.service.AppInfoService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"功能中心-应用信息管理"})
@RestController
@RequestMapping("/function/app-info")
public class AppInfoController extends BaseMybatisController<AppInfo, AppInfoService> {

    @Override
    public void beforeListQuery(QueryWrapper<AppInfo> queryWrapper) {
        queryWrapper.orderByDesc("sort");
    }
}
